/**
 * 
 */
package com.googlecode.dynargs.model.constraints;

/**
 * @author Federico De Faveri defaveri@gmail.com
 *
 */
public abstract class AbstractConstraint implements Constraint {
	
	protected String id;
	protected ConstraintType type;

	/**
	 * @param id
	 * @param type
	 */
	public AbstractConstraint(String id, ConstraintType type) {
		this.id = id;
		this.type = type;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
	
	/**
	 * @return the type
	 */
	public ConstraintType getType() {
		return type;
	}
}
